From: Jim Blandy Date: Tue, 25 May 1993 14:15:30 +0000 (+0000) Subject: * configure.in: When looking for source in the same directory as X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~95982 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=64dacd01675249bd819e0e861b83456c69fd0153;p=emacs.git * configure.in: When looking for source in the same directory as the configure script, make the path thus discovered absolute. If the user specifies the `--srcdir' switch, make that directory absolute too. --- diff --git a/configure1.in b/configure1.in index df41927674b..1238db91d6d 100755 --- a/configure1.in +++ b/configure1.in @@ -286,7 +286,7 @@ case "${srcdir}" in "" ) confdir=`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'` if [ -f $confdir/src/lisp.h -a -f $confdir/lisp/version.el ]; then - srcdir=$confdir + srcdir=`(cd $confdir ; pwd)` else if [ -f "./src/lisp.h" -a -f "./lisp/version.el" ]; then srcdir=`pwd` @@ -309,6 +309,7 @@ sources may be found." ## Otherwise, check if the directory they specified is okay. * ) + srcdir=`(cd ${srcdir}; pwd)` if [ ! -d "${srcdir}" -o ! -f "${srcdir}/src/lisp.h" -o ! -f "${srcdir}/lisp/version.el" ]; then (echo "\ ${progname}: The directory specified with the \`--srcdir' option,